namespace Code5Systems.FormMaster.Business
{

	#region CellInfo

	public class CellInfo
	{
		
#region Private Members
		private int _row = 1;
		private int _col = 1;
		private int _rowSpan = 1;
		private int _colSpan = 1;
		private bool _isEmpty = true;
		private bool _isSpanned = false;
		private FormControlInfo _formControlInfo;
		private FormControlInfo _spanOwner;
#endregion
		
#region Public Contructor
		
		public CellInfo()
		{
			
		}
		
		public CellInfo(bool isSpanned)
		{
			_isSpanned = isSpanned;
		}
		
		public CellInfo(bool isSpanned, FormControlInfo oSpanOwner)
		{
			_isSpanned = isSpanned;
			_spanOwner = oSpanOwner;
		}
		
		public CellInfo(bool isSpanned, FormControlInfo oSpanOwner, int row, int col)
		{
			_isSpanned = isSpanned;
			_spanOwner = oSpanOwner;
			_row = row;
			_col = col;
		}
#endregion
		
#region Public Properties
		
		public int Row
		{
			get
			{
				return _row;
			}
			set
			{
				_row = value;
			}
		}
		
		public int Col
		{
			get
			{
				return _col;
			}
			set
			{
				_col = value;
			}
		}
		
		public int RowSpan
		{
			get
			{
				return _rowSpan;
			}
			set
			{
				_rowSpan = value;
			}
		}
		
		public int ColSpan
		{
			get
			{
				return _colSpan;
			}
			set
			{
				_colSpan = value;
			}
		}
		
		public bool IsEmpty
		{
			get
			{
				return _isEmpty;
			}
			set
			{
				_isEmpty = value;
			}
		}
		
		public FormControlInfo FormControlInfo
		{
			get
			{
				return _formControlInfo;
			}
			set
			{
				_formControlInfo = value;
			}
		}
		
		public bool IsSpanned
		{
			get
			{
				return _isSpanned;
			}
			set
			{
				_isSpanned = value;
			}
		}
		
		public FormControlInfo SpanOwner
		{
			get
			{
				return _spanOwner;
			}
			set
			{
				_spanOwner = value;
			}
		}
#endregion
		
	}
#endregion
	
}
